package com.example.zk2_lx.login;

import androidx.lifecycle.MutableLiveData;

import com.example.zk2_lx.mvvm_base.BaseViewModel;

public class LoginViewModel extends BaseViewModel<LoginRepo> {
    @Override
    protected LoginRepo createRepo() {
        return new LoginRepo();
    }
    public MutableLiveData<String> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void login(String name,String pwd){
        repo.login(name,pwd,success,fail);
    }
}
